package com.lzj.myvideo.controller;

import com.lzj.myvideo.common.ServerResponse;
import com.lzj.myvideo.service.BgmService;
import com.shortvideo.dao.bgmMapper;
import com.shortvideo.pojo.bgm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class BgmController {
    @Autowired
    private BgmService bgmService;

    @RequestMapping("selectBgm")
    public ServerResponse selectBgm(){
        List<bgm> bgms = bgmService.selectBgm();
        return ServerResponse.createBySuccess(bgms);

    }
}
